#include <iostream>

#include "BigInteger.h"

#include <cassert>

using namespace std;

int main()
  {
  BigInteger P1 = 2222;
  BigInteger P2 = 299;

  BigInteger N1 = -4444;
  BigInteger N2 = -291;

//  assert(P1 + P2 == BigInteger("2521"));
//  assert(P1 + N1 == -P1);
//  assert(N2 + P2 == 8);
//  assert(N1 + N2 == -4735);
//
//  assert(P1 - P2 == 1923);
//  assert(P1 - N1 == 6666);
//  assert(N1 - P2 == -4743);
//  assert(N2 - N1 == 4153);

  BigInteger b1 = 45;
  BigInteger b2 = 22;
  BigInteger b3 = 4;
  BigInteger b4 = 8;
  BigInteger b5 = 12345;
  BigInteger b6 = 6789;

  BigInteger b7 = 1099;
  BigInteger b8 = 6789;
  //assert(b7 < b8);
  assert(b3*b4 == 32);
  assert(b1*b3 == 180);
  assert(b1*b4 == 360);
  assert(b1*b2 == 990);
  assert(b5*b6 == 83810205);


  system("pause");
  return 0;
  }